package com.lesserpand.rabbitmq.netty.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author bailuo
 * @version 2.0
 * @Description 读取yml配置文件中的信息
 * @Date Created in 2019/1/22 14:53
 */
@Component
@ConfigurationProperties(prefix = "netty")
public class NettyConfig {
    /**
     * 端口
     */
    private int port;
    /**
     * 最大线程数
     */
    private int maxThreads;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getMaxThreads() {
        return maxThreads;
    }

    public void setMaxThreads(int maxThreads) {
        this.maxThreads = maxThreads;
    }
}
